package misBS::Controller::Menus;

use strict;
use warnings;
use base 'Catalyst::Controller';

=head1 NAME

misBS::Controller::Menus - Catalyst Controller

=head1 DESCRIPTION

Catalyst Controller.

=head1 METHODS

=cut


=head2 index 

=cut

sub index : Private {
    my ( $self, $c ) = @_;


	$c->stash->{menus} = [$c->model('misBSDB::Menus')->search({parent => '0'})];
	#my @menus = qw /1 system /;


	$c->stash->{template}='menus/menu.tt2';

    #$c->response->body('Matched misBS::Controller::Menus in Menus.');
}


=head1 AUTHOR

alabos,,,

=head1 LICENSE

This library is free software, you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

1;
